<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>v-else-if</title>
  <style>
    .success {
      color: green;
    }

    .error {
      color: red;
    }
  </style>
</head>

<body>

  <div id="app">
    <h2 v-if="score >= 90" class="success">小伙子，优秀呀</h2>
    <h3 v-else-if="score >= 60">还行啦</h3>
    <h4 v-else class="error">就这？？？</h4>
  </div>

  <script src="../../js/vue.js"></script>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        message: 'hello',
        score: 100,
      }
    })
  </script>
</body>

</html>